//------------------------------------------------------------------------------
#include "CMyLabel.h"
//------------------------------------------------------------------------------
CMyLabel::CMyLabel(QWidget *parent) : QLabel(parent), CChampText()
{
	setText("CMyLabel");
	setDataType(CCommun::edtString);
}
//------------------------------------------------------------------------------
QString CMyLabel::getValue(void)
{
	QString ret=text().replace("\"", "\\\"");
	return ret;
}
//------------------------------------------------------------------------------
void CMyLabel::setValue(QVariant value)
{
	setText(toString(value));
}
//------------------------------------------------------------------------------
bool CMyLabel::isEmpty(void)
{
	return toBool(text());
}
//------------------------------------------------------------------------------


